package com.kelvin.paopao.widgets;

import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;

/**
 * Created by kelvin on 2017/2/20.
 */

public abstract class NolineColorSpan extends ClickableSpan {
    @Override
    public abstract void onClick(View widget);

    /**
     * 清除下划线
     * @param ds
     */
    @Override
    public void updateDrawState(TextPaint ds) {
        ds.setColor(ds.linkColor);
        ds.setUnderlineText(false);
    }
}
